<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Quản Lý Quảng Cáo</title>
<link href="styles.css" rel="stylesheet" type="text/css">
<script src="js/jquery.js"></script>
</head>
<body>
<jsp:include page="admin-header.jsp" />
		<form class="tknc" id ="themdm" accept-charset="UTF-8" method = "POST" action="quanglyquangcao?option=addnew" enctype="multipart/form-data">
		<div class="login-header">
			<span>Thêm quảng cáo</span>
		</div>
		<div class="login-content">
		<label>Tên quảng cáo :</label>  
		<input type = "text" name = "tenqc" required>
		<label>Công ty :</label>  
		<input type = "text" name = "congty" required>
		<label>Hình ảnh :</label>
		<input type="file" name="uploadFile" / required>
		<input type = "submit" value = "Save" >
		</div>
		</form>

<div class="admin-table">
            <h2>Thông Tin Quảng Cáo</h2>		
	<table class="table-bordered">
	<thead>
	<tr>
            <th>Tên quảng cáo</th>
            <th>Công ty</th>
            <th>Url hình</th>
	</tr>
	</thead>
            <tbody style="border: 1px solid #333;">
                <c:forEach items="${list}" var="list" >
                    <tr style="border: 1px solid #333;">
                        <td><a href = "ctquangcao.jsp?maqc=${list.maqc}">${list.tenqc}</a></td>
                        <td>${list.congty}</td>
                        <td><img src="${list.urlhinh}"></td>
                    </tr>
                </c:forEach>
            </tbody>
     	</table>
</body>
</html>